package com.project.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.project.entity.ChargeRecordEntity;
import com.project.mapper.IChargeRecordMapper;
import com.project.service.IChargeRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional
public class ChargeRecordServiceImpl implements IChargeRecordService {
    @Autowired
    private IChargeRecordMapper chargeRecordMapper;
    @Override
    public List<ChargeRecordEntity> findByList(Long id) {
        QueryWrapper<ChargeRecordEntity> qw=new QueryWrapper<>();
        qw.eq("u_userRef",id);
        return chargeRecordMapper.selectList(qw);
    }
}
